package com.demo.store.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class StoreMain {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private Long id;

    @Column("product_name")
    private String productName;

    @Column("product_total")
    private Long productTotal;

    @Column("product_surplus")
    private Long productSurplus;

    @Column("create_by")
    private Long createBy;

    @Column("create_time")
    private LocalDateTime createTime;

    @Column("update_by")
    private Long updateBy;

    @Column("update_time")
    private LocalDateTime updateTime;
}
